package com.example.ruiji.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.ruiji.pojo.Ltag;
import com.example.ruiji.pojo.Tag;
import com.example.ruiji.utils.vo.param.TagVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Author:BaiYiChen
 * Date:2022/4/19 17:19
 *
 * @author BaiYiChen
 */
@Repository
public interface TagMapper extends BaseMapper<Tag> {
  /**
   * 根据文章id查询对应的标签信息
   * @param id
   * @return
   */
    List<Ltag> findLtagById(@Param("articleId")Integer id);
    List<Ltag> hotTags(@Param("limit")Integer size);
}
